package com.zr.controller.finance;

import com.zr.service.finance.FinanceIncomeService;
import com.zr.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收款处理
 */
@RestController
@RequestMapping("/finance/income")
public class FinanceIncomeController {

    @Autowired
    private FinanceIncomeService financeIncomeService;

    /**
     * 查询贡献度排名前5的委托客户
     * @return
     * @author 张荣颜
     */
    @PostMapping("/getClientAmountSort")
    public AjaxResult getClientAmountSort(){
      return AjaxResult.success(200,"查询成功",financeIncomeService.getClientAmountSort());
    }
}

